home *** CD-ROM | disk | FTP | other *** search
/ Enter Special 5: Digital Photography / ENTER Special 05.iso / Grafika / Paint Shop Pro 8.0 / psp800ev.exe / Data1.cab / Preset_MagnifyingLens_Wavy_G < prev    next >
Encoding:
Text File  |  2003-04-22  |  3.0 KB  |  88 lines

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Kris Zaklika',
  6.         'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved.',
  7.         'Description': 'A wavy glass effect using a semitransparent gradient',
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Preset_MagnifyingLens():
  13.     return {
  14.         'Darkness': 30, 
  15.         'Defocus': 3, 
  16.         'Frame': {
  17.             'FrameColor': (255,186,1), 
  18.             'Material': App.Constants.LensFrameMaterial.Gold, 
  19.             'Style': App.Constants.LensFrameShape.Circular, 
  20.             'Thickness': 4
  21.             }, 
  22.         'Illumination': {
  23.             'LightList': [{
  24.                 'LightColor': (146,137,110), 
  25.                 'LightDirection': (-0.2913,0.2691,-0.8325), 
  26.                 'HighlightSize': 48
  27.                 },{
  28.                 'LightColor': (134,132,122), 
  29.                 'LightDirection': (0.478077,0.603516,0.638131), 
  30.                 'HighlightSize': 31
  31.                 },{
  32.                 'LightColor': (53,41,53), 
  33.                 'LightDirection': (0.652556,-0.75774,0), 
  34.                 'HighlightSize': 40
  35.                 }], 
  36.             'MaxAmbience': 100, 
  37.             'MinAmbience': 39
  38.             }, 
  39.         'LensSurface': {
  40.             'EnvironmentMap': {
  41.                 'Active': App.Constants.Boolean.false
  42.                 }, 
  43.             'Gloss': 0, 
  44.             'Magnification': 6, 
  45.             'LensMaterial': {
  46.                 'Color': None, 
  47.                 'Pattern': None, 
  48.                 'Gradient': {
  49.                     'Name': 'Fading foreground', 
  50.                     'GradientType': App.Constants.GradientType.Radial, 
  51.                     'Angle': 0, 
  52.                     'RepeatCount': 12, 
  53.                     'RepeatType': App.Constants.RepeatType.Pad, 
  54.                     'ColorStops': [{
  55.                         'Color': (0,0,0), 
  56.                         'Location': 0, 
  57.                         'Midpoint': 0.5
  58.                         },{
  59.                         'Color': (0,0,0), 
  60.                         'Location': 1, 
  61.                         'Midpoint': 0.5
  62.                         }], 
  63.                     'TransparencyStops': [{
  64.                         'Level': 100, 
  65.                         'Location': 0, 
  66.                         'MidPoint': 0.5
  67.                         },{
  68.                         'Level': 0, 
  69.                         'Location': 1, 
  70.                         'MidPoint': 0.75
  71.                         }], 
  72.                     'CenterPoint': (0.5,0.5), 
  73.                     'FocalPoint': (0.5,0.5), 
  74.                     'Invert': App.Constants.Boolean.true
  75.                     }, 
  76.                 'Texture': None
  77.                 }, 
  78.             'LensOpacity': 78, 
  79.             'Refraction': 5, 
  80.             'ShapeType': App.Constants.LensShape.Spherical, 
  81.             'Shininess': 75
  82.             }
  83.         }
  84.  
  85. def Do(Environment):
  86.     App.Do( Environment, 'MagnifyingLens',         Preset_MagnifyingLens())
  87.  
  88.